/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.flexengine.scene;

import com.flexengine.component.Label;
import com.flexengine.component.Separator;
import com.flexengine.cursor.CursorManager;
import com.flexengine.engine.FlexEngine;
import com.flexengine.utils.FlexGameManager;
import com.flexengine.utils.FontManager;
import com.flexengine.view.GameWindow;
import com.flexengine.view.Graphics;
import java.awt.Color;
import java.awt.Font;

/**
 *
 * @author Luann Athayde
 */
public class SandBoxScene extends GameScene {

    private Label titulo;
    private Separator separator;
    
    public SandBoxScene(String nome) {
        super(nome);
        titulo = new Label("Jogos disponíveis");
        titulo.setBounds(20, 20, 1280, 60);
        titulo.setBackgroundColor(Color.BLACK);
        titulo.setFont(FontManager.getFont("Arial", Font.BOLD, 48));
        separator = new Separator();
        separator.setBounds(10, 90, 1260, 2);
        separator.setColor(Color.BLACK);
        add(titulo);
        add(separator);
    }
    public SandBoxScene() {
        this("SandBoxScene");
    }

    @Override
    public void init(SceneBundle bundle) {
        super.init(bundle);
        GameWindow.getInstance().setBackground(Color.WHITE);
        GameWindow.getInstance().setTitle("FlexEngine - SandBox Mode");
        FlexEngine.getInstance().setDesireUPS(30);
        CursorManager.showGameCursor();
    }

    @Override
    public void loadResources() {
        super.loadResources();
        FlexGameManager.loadGames();
    }
    
    @Override
    public synchronized void update(Long time, Long totalTime) {
        super.update(time, totalTime);
    }

    @Override
    public synchronized void render(Graphics g) {
        super.render(g);
    }

    @Override
    public void end(SceneBundle bundle) {
        super.end(bundle);
    }
    
}
